package com.example.md.mddemo.tabledemo.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

import com.example.md.mddemo.tabledemo.User;
@Mapper
public interface UserDao {
    int insert(@Param("user") User user);

    int insertSelective(@Param("user") User user);

    int insertList(@Param("users") List<User> users);

    int update(@Param("user") User user);

    int insert(@Param("user") User user,@Param("tableName") String tableName);

    List<User> findByName(@Param("name")String name, @Param("tableName") String tableName);

    User findById(@Param("user") User user);






}
